package com.free.framework.lib.utils;

import android.content.res.Resources;
import android.support.annotation.ArrayRes;
import android.support.annotation.IntegerRes;
import android.support.annotation.StringRes;

/**
 * @author 李博
 * @date 16/10/28
 * @desc ResMgr
 */

public class ResMgr {

    private static final Resources mRes = ContextHolder.getContext().getResources();

    public static int getInt(@IntegerRes int resId){
        return mRes.getInteger(resId);
    }

    public static  String getString(@StringRes int resId) {
        return mRes.getString(resId);
    }

    public static String[] getStringArray(@ArrayRes int resId){
        return mRes.getStringArray(resId);
    }

}
